package cn.bocweb.spinning.view.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentStatePagerAdapter;
import android.support.v4.view.PagerAdapter;

import java.util.List;

import cn.bocweb.spinning.view.fragment.SequenceTestFragment;

/**
 * Created by chenchangxing on 16/1/26.
 */
public class SequenceTestAdapter extends FragmentStatePagerAdapter {

    List<SequenceTestFragment> list;
    public SequenceTestAdapter(FragmentManager fm, List<SequenceTestFragment> list) {
        super(fm);
        this.list = list;
    }

    @Override
    public Fragment getItem(int position) {
        return list.get(position);
    }

    @Override
    public int getCount() {
        return list.size();
    }

    @Override
    public int getItemPosition(Object object) {
        return PagerAdapter.POSITION_NONE;
    }


}
